#Horneds makefile

DEV_EMAIL = horneds@gmail.com
DEV_APPSERVER =	~/googleappengine/dev_appserver.py
APPCFG = ~/googleappengine/appcfg.py

default: help

help:
	@echo "Available commands:"
	@sed -n '/^[a-zA-Z0-9_.]*:/s/:.*//p' <Makefile | sort

serve:
	$(DEV_APPSERVER) .

serve_remote:
	$(DEV_APPSERVER) --address 0.0.0.0 .

serve_email:
	$(DEV_APPSERVER) --enable_sendmail .

serve_remote_email:
	$(DEV_APPSERVER) --enable_sendmail --address 0.0.0.0 .

update:
	$(APPCFG) update --email=$(DEV_EMAIL) .

upload: update

clean:
	$(DEV_APPSERVER) --clear_datastore .

